<ion-header>

  <ion-navbar>
    <ion-title>{{title}}修确认</ion-title>
  </ion-navbar>

</ion-header>


<ion-content class="applyrepairdetail">
  <ion-list>
    <ion-item>
      <ion-label>{{title}}修公司:</ion-label>
      <ion-input type="text" disabled="true" [(ngModel)]="applyRepairBean.partyName"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>{{title}}修人姓名:</ion-label>
      <ion-input type="text" disabled="true" [(ngModel)]="applyRepairBean.recorderName"></ion-input>
    </ion-item>
    <ion-item style="margin-bottom: 5px">
      <ion-label>{{title}}修时间:</ion-label>
      <ion-input type="text" disabled="true" [(ngModel)]="applyRepairBean.applyTime"></ion-input>
    </ion-item>
    <ion-item style="margin-bottom: 5px">
      <ion-label>外部关联码:</ion-label>
      <ion-input type="text" disabled="true" [(ngModel)]="outSideNum"></ion-input>
    </ion-item>
    <div class="area">
      <div class="content">
        <p>电梯位置:</p>
        <ion-textarea rows="5" type="text" disabled="true" [(ngModel)]="applyRepairBean.blocksNum"></ion-textarea>
      </div>
    </div>
    <div class="area">
      <div class="content">
        <p>{{title}}修问题:</p>
        <ion-textarea rows="5" type="text" disabled="true" [(ngModel)]="applyRepairBean.applyQuestion"></ion-textarea>
      </div>
    </div>
    <div class="area">
      <div class="content">
        <p>整改处理方法:</p>
        <ion-textarea rows="5" type="text" disabled="true" [(ngModel)]="applyRepairBean.dealWay"></ion-textarea>
      </div>
    </div>

    <ion-item *ngIf="applyRepairBean.applyType==1">
      <ion-label>预估费用/元:</ion-label>
      <ion-input type="text" disabled="true" placeholder="必填，无费用可填 0" [(ngModel)]="applyRepairBean.cost"></ion-input>
    </ion-item>

    <ion-item style="margin-bottom: 5px">
      <ion-label>预约维修时间:</ion-label>
      <ion-input type="text" disabled="true" [(ngModel)]="applyRepairBean.repairTime"></ion-input>
    </ion-item>
    <div class="area">
      <div class="content">
        <p>申请人签名:</p>
        <ion-img width="100%" height="200px" src="{{imgsrc}}"></ion-img>
      </div>
    </div>
    <div *ngIf="dtype=='wx'||dtype=='lk'||spqm" class="area">
      <div class="content">
        <p>审批人签名:</p>
        <ion-img width="100%" height="200px" src="{{spimgsrc}}"></ion-img>
      </div>
    </div>
  </ion-list>


  <ion-list>
    <div class="area">
      <div class="content">
        <p>审批意见:</p>
        <ion-textarea rows="5" *ngIf="dtype=='sp' && !spqm" type="text" [(ngModel)]="applyRepairBean.refuseReason"></ion-textarea>
        <ion-textarea rows="5" *ngIf="dtype=='wx'||dtype=='lk'||spqm" disabled="true" type="text" [(ngModel)]="applyRepairBean.refuseReason"></ion-textarea>
      </div>
    </div>
    <div *ngIf="dtype=='sp' && !spqm" class="signarea">
      <div>
        <p style="margin: 0;">签名:（提示:请在签完名后点击保存）</p>
        <signatrue [inValue]="time" (outPut)="getImgUrl($event)"></signatrue>
      </div>
    </div>
  </ion-list>

  <button *ngIf="dtype=='sp' && !spqm" ion-button (click)="send('2')" class="submitno">拒绝</button>
  <button *ngIf="dtype=='sp'&& !spqm" ion-button (click)="send('1')" class="submit">同意</button>
  <button *ngIf="dtype=='wx'" ion-button (click)="towx()" class="submitlong">开始维修</button>
  <button *ngIf="spqm && dtype=='sp'" ion-button (click)="updateRead()" class="submitlong">确定已读</button>
</ion-content>